import { Arguments } from 'yargs-parser'

export interface TransformFileAsyncOptions {
  outDir?: string
  isEsmodules?: boolean
  isReact?: boolean
  files?: string[]
  onlyRemoveTypeImports?: boolean
  disableBabel?: boolean
}

export interface ArgvArguments extends Partial<Arguments> {
  /**入口文件夹*/
  entry?: string
  /**输出文件夹*/
  output?: string
  /**是否是esmodules*/
  es?: boolean
  /**是否使用@babel/preset-react*/
  presetReact?: boolean
  /**转换单个文件*/
  files?: string[] | string
  /**是否只是移出typescript*/
  onlyRemoveTypeImports?: boolean
  /**禁用babel转换*/
  disableBabel?: boolean
}
